/**
 * @properties={typeid:35,uuid:"0CB3D634-F40F-43D0-8676-0DDB2893E8BF",variableType:-4}
 */
var props = {
	frm_padre_event:null, 
	frm_padre:"", 
	frm_padre_foundset:null,
	frm_padre_modo:null,
	msg_titulo:"",
	msg_body:null,
	bok:false
	};


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"75FD5DFE-91F3-43B3-8761-FD6CB2A10A4A"}
 */
function aceptar(event) {
	
	props.bok = true;
	volver(event);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9D502BBE-B36A-494F-8B2E-8AE80EB86E66"}
 */
function cancelar(event) {
	
	props.bok = false;
	volver(event);
}

/**
 * @param {JSEvent} event
 *
 * @properties={typeid:24,uuid:"7908B2E9-B41D-4D0D-8213-785469152B78"}
 */
function volver(event){
	
	controller.getWindow().hide();
	globals.ir_formulario(
		props.frm_padre_event,
		props.frm_padre,
		props.frm_padre_foundset,
		props.frm_padre_modo);
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"CCB02F21-B133-4DC2-81BE-CEAC44ED787B"}
 */
function onShow(firstShow, event) {

	elements.lbl_titulo.text = props.msg_titulo;
	elements.lbl_mensaje.text = props.msg_body;
}
